package com.example.demo.model.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.demo.datamatch.entity.YzTestMatch;
import com.example.demo.datamatch.service.IYzTestMatchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author Administrator
 */
@Component
@DS("dsj")
public class OracleComponent {

    @Autowired
    private IYzTestMatchService yzTestMatchService;

    public List<YzTestMatch> getMatchList() {
        LambdaQueryWrapper<YzTestMatch> query = Wrappers.lambdaQuery(YzTestMatch.class);
        query.eq(YzTestMatch::getFirstrecommendfield, "豫VFZ271");
        return yzTestMatchService.list(query);

    }
}
